cmake_minimum_required(VERSION 3.16.3)
project(GoBot)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
# 如果未指定构建类型，默认使用 Release
if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Release)
endif()

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Set the generator to Visual Studio 2017
set(CMAKE_GENERATOR "Visual Studio 15 2017" CACHE INTERNAL "" FORCE)

# Set the platform to x64
set(CMAKE_GENERATOR_PLATFORM x64 CACHE INTERNAL "" FORCE)

include(${CMAKE_SOURCE_DIR}/cmake/SetupQt.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/SetupCTK.cmake)

include_directories(
    #${Boost_INCLUDE_DIRS}
    ${Qt5Widgets_INCLUDE_DIRS}
    ${Qt5Core_INCLUDE_DIRS}
    ${Qt5Gui_INCLUDE_DIRS}
    ${CMAKE_SOURCE_DIR}/src/
) 
add_subdirectory(src)